@import "tools";

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: #f8f8f8;
}

body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: 500;
}

a,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  border: 0;
}

textarea {
  resize: none;
  appearance: none;
}

input {
  position: relative;
  border: 0;
  appearance: none;
}

::-webkit-input-placeholder {
  //display: block;
  //font-size: 14px;
  color: #E4E4E4;
}

select {
  background-color: #fff;
  appearance: none;
}

button {
  border: 0;
}

a {
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

// 自定义字体
.clearfix:after {
  display: block;
  clear: both;
  height: 0;
  content: '';
}

::-webkit-scrollbar {
  /*隐藏滚轮*/
  display: none;
}

:focus {
  outline: 0;
}

#wrapper {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

.wrapper-scroll {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
}

.btn-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: px2rem375(343px);
  height: px2rem375(44px);
  margin: 0 auto;
  color: #FFFFFF;
  border-radius: px2rem375(4px);
  background-image: linear-gradient(0deg, #FFA21A 0%, #FFAF1F 100%);
  box-shadow: 0 px2rem375(3px) px2rem375(10px) 0 rgba(255, 167, 28, 0.50);
  font-size: 16px;

  &.disabled {
    background-color: #FFDBAC;
    background-image: none;
  }
}

.bb1 {
  position: relative;

  &:after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    content: '';
    transform: scaleY(0.5);
    background-color: #e4e4e4;
  }
}

// mint-ui
.mint-actionsheet-listitem,
.mint-actionsheet-button {
  position: relative;
  height: 45px;
  color: #666;
  border: 0;
  font-size: 14px;
  line-height: 45px;

  &:after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    content: '';
    transform: scaleY(0.5);
    background-color: #e4e4e4;
  }

  &:last-child {
    &:after {
      display: none;
    }
  }
}

.picker-slot.picker-slot-divider {
  color: #999;
}

.picker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  color: #ccc;
  font-size: 14px;
  line-height: 16px !important;
}

.mint-toast {
  z-index: 9999 !important;
  max-width: 270px;
  padding: 8px 16px !important;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

.mint-toast-text {
  word-wrap: break-word;
  word-break: break-all;
}

// error-page
// 错误提示页面
.errorPage {
  width: 100%;
  height: 100%;
  padding-top: px2rem375(24px);
  text-align: center;
  background-color: #fff;
  font-family: PingFangSC-Regular;

  &-img {
    display: block;
    width: px2rem375(160px);
    height: px2rem375(160px);
    margin: 0 auto;
  }

  &-title {
    width: px2rem375(280px);
    margin: px2rem375(24px) auto px2rem375(16px);
    text-align: center;
    white-space: nowrap;
    color: #333333;
    font-size: 15px;
    line-height: 1;
  }

  &-text {
    margin: 0 auto;
    padding: 0 px2rem375(16px) px2rem375(32px);
    text-align: center;
    color: #999999;
    font-size: 13px;
    line-height: 20px;
  }

  &-tip {
    margin: px2rem375(12px) auto;
    text-align: center;
    color: #CCCCCC;
    font-size: 13px;
  }
}
